//package com.example.demo.controller;
//import com.example.demo.model.Student;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.ArrayList;
//import java.util.List;
//
//@RestController
//public class HelloController {
//    @GetMapping("hello")
//    public String say(){
//        return "hello,springboot";
//    }
//
//    @GetMapping("stu")
//    public Student stu(){
//        return new Student("13","Tom",12);
//    }
//
//    // @GetMapping("list")
//    public List<Student> list(){
//        ArrayList<Student> students = new ArrayList<>();
//        students.add(new Student("1","jerry",12));
//        students.add(new Student("2","jack",12));
//        return students;
//    }
//}